#ifndef EXPDETAILS_H
#define EXPDETAILS_H

#include"exptoday.h"
#include"exprange.h"
#include"expcatview.h"
#include"expmonthview.h"
#include"db_class.h"
#include <QMainWindow>

namespace Ui {
    class ExpDetails;
}

class ExpDetails : public QMainWindow
{
    Q_OBJECT

public:
    explicit ExpDetails(int id,int flag,QWidget *parent = 0);
    ~ExpDetails();
    void setDate(QDate,QDate);
    void setMonth(QString);

private:
    Ui::ExpDetails *ui;
    QDate from,to;
    double amount;
    int flag,expid;
    QString namecat;
    QString nameacc;
    QDate dd;
    QString month;
    db_class db;
    void go_back();
private slots:
    void on_pushButton_delete_clicked();
    void on_pushButton_save_clicked();
    void back();
};

#endif // EXPDETAILS_H
